<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .accordion-container {
            width: 740px;
            overflow: hidden;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
        }

        .accordion-container>.accordion-item {
            list-style: none;
            height: 500px;
            transition: width 0.5s;
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
            position: relative;
        }
        .accordion-container > .accordion-item:not(:hover) {
            width: 20%;
        }
        .accordion-container > .accordion-item:hover {
            width: 281.20px;
        }
        .accordion-container > .accordion-item > .accordion-title {
            color: #fff;
            font-size: 18px;
            z-index: 2;
        }
    </style>
</head>

<body>
    <ul class="accordion-container">
        <li class="accordion-item" style="background-image:url(./images/01.jpeg)">
        </li>
        <li class="accordion-item" style="background-image:url(./images/02.jpeg)">
        </li>
        <li class="accordion-item" style="background-image:url(./images/03.jpeg)">
        </li>
        <li class="accordion-item" style="background-image:url(./images/04.jpeg)">
        </li>
        <li class="accordion-item" style="background-image:url(./images/05.jpeg)">
        </li>
    </ul>
</body>

</html>